package cn.huapu.power.energy.bean.bo;

import java.util.List;

/**
 * @author USER
 * @title: DateParameter
 * @projectName energy
 * @description: 接收前端参数实体类
 * @date 2019-5-2718:18
 */
public class DateParameterBo {

    private Integer id;//用户单位id
    private String year;
    private String month;
    private String day;
    private String name;
    private String dateOne;
    private String dateTwo;
    private String dstbtRoom;//配电房
    private Integer substationId;
    private String transformer;//变压器
    private Integer transformerId;
    private String type1;//类别1
    private String type2;//类别2
    private long rows;
    private long page;
    private String table;//动态sql参数
    private String typeName;

    public Integer getSubstationId() {
        return substationId;
    }

    public void setSubstationId(Integer substationId) {
        this.substationId = substationId;
    }

    public Integer getTransformerId() {
        return transformerId;
    }

    public void setTransformerId(Integer transformerId) {
        this.transformerId = transformerId;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public String getDateOne() {
        return dateOne;
    }

    public void setDateOne(String dateOne) {
        this.dateOne = dateOne;
    }

    public String getDateTwo() {
        return dateTwo;
    }

    public void setDateTwo(String dateTwo) {
        this.dateTwo = dateTwo;
    }



    public long getRows() {
        return rows;
    }

    public void setRows(long rows) {
        this.rows = rows;
    }

    public long getPage() {
        return page;
    }

    public void setPage(long page) {
        this.page = page;
    }

    public String getDstbtRoom() {
        return dstbtRoom;
    }

    public void setDstbtRoom(String dstbtRoom) {
        this.dstbtRoom = dstbtRoom;
    }

    public String getTransformer() {
        return transformer;
    }

    public void setTransformer(String transformer) {
        this.transformer = transformer;
    }

    public String getType1() {
        return type1;
    }

    public void setType1(String type1) {
        this.type1 = type1;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getPreTable(){
    	int y = year== null?2019:Integer.parseInt(year);
    	int m = month == null ? 6:Integer.parseInt(month);
    	return "pea_historyex"+y+""+m+"_m15";
    }

    public String getType2() {
        return type2;
    }

    public void setType2(String type2) {
        this.type2 = type2;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
